<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('修改采集数据点位')" />
    <th:block th:include="include :: datetimepicker-css" />
</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-gzmx_tag-edit" th:object="${gzmx_tag}">
            <input name="id" th:field="*{id}" type="hidden">
            <div class="form-group">    
                <label class="col-sm-3 control-label">点位ID：</label>
                <div class="col-sm-8">
                    <input name="SourceTag" th:field="*{SourceTag}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">点位名称：</label>
                <div class="col-sm-8">
                    <input name="Description" th:field="*{Description}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">最大值：</label>
                <div class="col-sm-8">
                    <input name="Max_value" th:field="*{Max_value}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">最小值：</label>
                <div class="col-sm-8">
                    <input name="Min_value" th:field="*{Min_value}" class="form-control" type="text">
                </div>
            </div>
            <!--  
            <div class="form-group">    
                <label class="col-sm-3 control-label">采集时间：</label>
                <div class="col-sm-8">
                    <div class="input-group date">
                        <input name="TimeStam" th:value="${#dates.format(gzmx_tag.TimeStam, 'yyyy-MM-dd')}" class="form-control" placeholder="yyyy-MM-dd" type="text">
                        <span class="input-group-addon"><i class="fa fa-calendar"></i></span>
                    </div>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">读取时间：</label>
                <div class="col-sm-8">
                    <div class="input-group date">
                        <input name="FomatedTime" th:value="${#dates.format(gzmx_tag.FomatedTime, 'yyyy-MM-dd')}" class="form-control" placeholder="yyyy-MM-dd" type="text">
                        <span class="input-group-addon"><i class="fa fa-calendar"></i></span>
                    </div>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">采集值：</label>
                <div class="col-sm-8">
                    <input name="Value" th:field="*{Value}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">连接方式ID：</label>
                <div class="col-sm-8">
                    <input name="ljfs_id" th:field="*{ljfs_id}" class="form-control" type="text">
                </div>
            </div>
            
            <div class="form-group">    
                <label class="col-sm-3 control-label">父点位代码：</label>
                <div class="col-sm-8">
                    <input name="fdwdm" th:field="*{fdwdm}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">父点位名称：</label>
                <div class="col-sm-8">
                    <input name="fdwdm_name" th:field="*{fdwdm_name}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">故障模型ID：</label>
                <div class="col-sm-8">
                    <input name="gzmx_id" th:field="*{gzmx_id}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">二级单位ID：</label>
                <div class="col-sm-8">
                    <input name="ejdw_id" th:field="*{ejdw_id}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">二级单位名称：</label>
                <div class="col-sm-8">
                    <input name="ejdw_name" th:field="*{ejdw_name}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">作业区ID：</label>
                <div class="col-sm-8">
                    <input name="zyq_id" th:field="*{zyq_id}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">作业区名称：</label>
                <div class="col-sm-8">
                    <input name="zyq_name" th:field="*{zyq_name}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">点位3级ID：</label>
                <div class="col-sm-8">
                    <input name="dw_3_id" th:field="*{dw_3_id}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">点位3级名称：</label>
                <div class="col-sm-8">
                    <input name="dw_3_name" th:field="*{dw_3_name}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">点位4级ID：</label>
                <div class="col-sm-8">
                    <input name="dw_4_id" th:field="*{dw_4_id}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">点位4级名称：</label>
                <div class="col-sm-8">
                    <input name="dw_4_name" th:field="*{dw_4_name}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">点位5级ID：</label>
                <div class="col-sm-8">
                    <input name="dw_5_id" th:field="*{dw_5_id}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">点位5级名称：</label>
                <div class="col-sm-8">
                    <input name="dw_5_name" th:field="*{dw_5_name}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">单位ID：</label>
                <div class="col-sm-8">
                    <input name="deptId" th:field="*{deptId}" class="form-control" type="text">
                </div>
            </div>
            -->
        </form>
    </div>
    <th:block th:include="include :: footer" />
    <th:block th:include="include :: datetimepicker-js" />
    <script th:inline="javascript">
        var prefix = ctx + "gzmx_tag/gzmx_tag";
        $("#form-gzmx_tag-edit").validate({
            focusCleanup: true
        });

        function submitHandler() {
            if ($.validate.form()) {
                $.operate.save(prefix + "/edit", $('#form-gzmx_tag-edit').serialize());
            }
        }

        $("input[name='TimeStam']").datetimepicker({
            format: "yyyy-mm-dd",
            minView: "month",
            autoclose: true
        });

        $("input[name='FomatedTime']").datetimepicker({
            format: "yyyy-mm-dd",
            minView: "month",
            autoclose: true
        });
    </script>
</body>
</html>